const Mock = require("mockjs");

export default {
	"GET /api/demo/list": (req, res) => {
		const resc = {
			code: 200,
			data: {
				total: 5,
				page: 1,
				pageSize: 20,
				summary: {
					num: "999.00",
					progress: "888.00",
				},
				rows: [
					{
						id: "640000197004218500",
						name: "Mark Taylor",
						email: "j.qtke@satcrpidn.om",
						ip: "141.82.233.159",
						datetime: "2022-07-05 06:41:52",
						boolean: true,
						type: "0",
						sex: "男",
						progress: 15,
						num: 217,
					},
					{
						id: "410000200207291945",
						name: "Ronald Lee",
						email: "b.lgljcgkioj@upbmbghfsi.zm",
						ip: "36.142.236.89",
						datetime: "1976-11-26 20:17:32",
						boolean: true,
						type: "0",
						sex: "女",
						progress: 20,
						num: 619,
					},
					{
						id: "33000020090502713X",
						name: "Angela Martinez",
						email: "i.nbkmu@xtfiuwuul.tv",
						ip: "87.52.6.82",
						datetime: "1979-09-03 22:24:23",
						boolean: false,
						type: "1",
						sex: "女",
						progress: 95,
						num: 797,
					},
					{
						id: "220000201511026571",
						name: "Charles White",
						email: "n.itextgmhr@qstw.bw",
						ip: "45.137.245.113",
						datetime: "1988-11-02 13:15:01",
						boolean: false,
						type: "0",
						sex: "男",
						progress: 74,
						num: 741,
					},
					{
						id: "420000197812256774",
						name: "Linda Williams",
						email: "w.mogkumgyq@iwrvnhepe.ly",
						ip: "2.150.188.169",
						datetime: "2013-08-11 09:59:27",
						boolean: false,
						type: "0",
						sex: "男",
						progress: 32,
						num: 7,
					},
				],
			},
			message: "",
		};
		return res.json(Mock.mock(resc));
	},
};
